package xin.sunzy.spring.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.sunzy.spring.model.Person;

/**
 * description: [描述文本][optional]
 * email: <a href="sunzhenyu@terminus.io">孙振宇</a>
 * author: ginkgo
 * date: 2018/3/11
 */
@Slf4j
@RestController
@RequestMapping(value = "/api/hello-controller")
public class HelloController {

    @Autowired
    private Person person;

    @GetMapping("/hello")
    public Object hello(){
        return person;
    }

}
